package com.ruoyi.driver.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 人脸识别结果对象 face_recognition_result
 * 
 * @author ruoyi
 * @date 2025-08-27
 */
public class FaceRecognitionResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverId;

    /** 人脸识别图片(Base64编码) */
    private String imageBase64;

    /** 匹配分数 */
    @Excel(name = "匹配分数")
    private Double matchScore;

    /** 识别结果JSON数据 */
    private String resultJson;

    /** 识别状态(0成功 1失败) */
    @Excel(name = "识别状态", readConverterExp = "0=成功,1=失败")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setDriverId(Long driverId)
    {
        this.driverId = driverId;
    }

    public Long getDriverId()
    {
        return driverId;
    }

    public void setImageBase64(String imageBase64)
    {
        this.imageBase64 = imageBase64;
    }

    public String getImageBase64()
    {
        return imageBase64;
    }

    public void setMatchScore(Double matchScore)
    {
        this.matchScore = matchScore;
    }

    public Double getMatchScore()
    {
        return matchScore;
    }

    public void setResultJson(String resultJson)
    {
        this.resultJson = resultJson;
    }

    public String getResultJson()
    {
        return resultJson;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("driverId", getDriverId())
            .append("imageBase64", getImageBase64())
            .append("matchScore", getMatchScore())
            .append("resultJson", getResultJson())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}